package com.luck.service;

import com.luck.api.ThinkWordsManager;
import com.luck.dao.ThinkWordsMapper;
import com.luck.model.po.ThinkWords;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Hua wb on 2018/9/21.
 *
 */
@Service
public class ThinkWordsService implements ThinkWordsManager {
    @Autowired
    private ThinkWordsMapper thinkWordsMapper;
    @Override
    public int addThinkWords(ThinkWords thinkWords) {
        return thinkWordsMapper.insertSelective(thinkWords);
    }

    @Override
    public List<ThinkWords> getThinkWordsByNew5() {
        return thinkWordsMapper.getThinkWordsByNew5();
    }
}
